Skip to content

Conversation

@danifus
Copy link
Contributor

@danifus danifus commented Jul 1, 2025

Use the earliest zinfo.header_offset for ZipFile.data_offset.

We already sort the zinfos by their header_offset in _RealGetContents so it is cheap to grab the zinfo with the lowest header_offset.

Happy to add a news entry if required (given that 3.14 which introduced ZipFile.data_offset hasn't been released yet?)

@danifus
Copy link
Contributor Author

danifus commented Jul 22, 2025

#84481 was reopened and the addition of the data_offset property reverted to allow more discussion about the definition of data_offset.

@danifus danifus closed this Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant